<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
	<title><?php echo $title?></title>
	<link href="<?php echo base_url()?>css/back_end/login-box.css" rel="stylesheet" type="text/css" />
</head>

<body style="background-color: #E9E9E9;">
	<div style="padding: 100px 0 0 0; margin: 0 auto; width: 500px;">
		<div id="login-box">
			<h2>Login</h2>
			<br />
			<form action="<?php echo base_url().'admins/admins/action_login'?>" method="post">
				<div id="login-box-name" style="margin-top:20px;">Username:</div>
				<div id="login-box-field" style="margin-top:20px;">
					<input name="username" id="username" class="form-login" title="Username" value="" size="30" maxlength="2048" />
				</div>
				<div id="login-box-name">Password:</div>
				<div id="login-box-field">
					<input name="password" id="password" type="password" class="form-login" title="Password" value="" size="30" maxlength="2048" />
				</div>		
				<?php if (isset($_SESSION["error_loginadmin"]) && !empty($_SESSION["error_loginadmin"])){?>
                	<div style="padding-top: 10px; padding-bottom: 10px; margin-left:90px"><?php echo  '<font style="color: #EBEBEB; text-align: center;">'.$_SESSION["error_loginadmin"].'</font>'?></div>
				<?php }$_SESSION["error_loginadmin"] = NULL;?>
				<input type="image" src="<?php echo base_url()?>images/back_end/login-btn.png" style="margin-left:90px; width: 103px; height: 42px;" />
			</form>			
		</div>
	</div>
</body>
</html>